import React from "react";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Layout from "../layout/Layout";
import FormRender from "../../components/form-render/FormRender";

export default function Router() {
    return (
        <BrowserRouter>
            <Routes>
                <Route path='/' element={<Layout />}>
                    <Route path='/bar' element={<h2>Inbox</h2>}/>
                    <Route path='/form-render' element={<FormRender />}/>
                </Route>
            </Routes>
        </BrowserRouter>
    );
}